import requests
import re
url="https://www.sanchuangedu.cn"
req=requests.get(url)
req.encoding='utf-8'
r=req.text
pic=re.findall(r"(?:(?<=src=\")|(?<=url\()).+[.](?:jpg|png|gif)",r)
for dl in pic:
    filename=dl.replace("/","")
    picurl=url+dl
    dp=requests.get(picurl)
    with open(filename,mode='wb') as dlpic:
        dlpic.write(dp.content)